
import os
import sys
import shutil

def GetMyFileDir():
     path = sys.path[0]
     if os.path.isdir(path):
         return path
     elif os.path.isfile(path):
         return os.path.dirname(path)

myFileDir = GetMyFileDir()

for dirpath, dirnames, filenames in os.walk("."):
	for filename in filenames:
		if os.path.splitext(filename)[1] == '.xml':
			filepath = os.path.join(dirpath, filename)
			print(filename + " : " + filepath)
			os.remove(os.path.join(myFileDir, filepath))
